package Com.Isman.WebService.ComplexType;

import java.io.Serializable;

import org.ksoap2.serialization.SoapObject;

public class Hotel implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	//variable
	private int hotelID;
	private String hotelName;
	private float hotelRating;
	private Image logo;
	private Map map;
	private double price;
	
	
	//constructor
	public Hotel() {}
	public Hotel(SoapObject value){
		hotelID 	= Integer.parseInt(value.getProperty("HotelID").toString());
		hotelName 	= value.getProperty("HotelName").toString();
		hotelRating	= Float.parseFloat(value.getProperty("HotelRating").toString());
		map			= new Map((SoapObject)value.getProperty("Map"));
		logo		= new Image((SoapObject)value.getProperty("Logo"));
		price		= Double.parseDouble(value.getProperty("Price").toString());
	}
	
	public int getHotelID() {
		return hotelID;
	}
	public String getHotelName() {
		return hotelName;
	}
	public float getHotelRating() {
		return hotelRating;
	}
	public Image getLogo() {
		return logo;
	}
	public Map getMap() {
		return map;
	}
	public double getPrice() {
		return price;
	}
	public void setHotelID(int hotelID) {
		this.hotelID = hotelID;
	}
	public void setHotelName(String hotelName) {
		this.hotelName = hotelName;
	}
	public void setHotelRating(float hotelRating) {
		this.hotelRating = hotelRating;
	}
	public void setLogo(Image logo) {
		this.logo = logo;
	}
	public void setMap(Map map) {
		this.map = map;
	}
	public void setPrice(double price) {
		this.price = price;
	}

}
